import java.util.Scanner;

public class Practice05 {
    public static void main(String[] args) {
        //有如下数组 nums ，请通过删除掉其中的 33 ，得到一个新的数组 newNums
        int[] num = {2, 11, 33, 44, 55, 66, 277};
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个值：");
        int number = sc.nextInt();
        int[] Newarr = new int[num.length];
        for (int i = 0; i < num.length; i++) {
            Newarr[i] = num[i];
            if (Newarr[i] == number){
                continue;
            }
            System.out.print(Newarr[i] + "\t");
        }
    }
}
